<template>
  <div class="question-waiting-card">
    <div class="left"> 
      <!-- <div class="tips">最近 5481 人看过</div> -->
      <div class="question">
        <div class="label">爆火</div>
        <div @click="toQuestionDetail" class="text text-line-1 small-hand">
          {{questionItem.title}}
        </div>
      </div>
      <div class="content">
          {{questionItem.content}}
      </div>
      <div class="info">
        115 回答 · {{questionItem.likeNum}} 点赞 · {{ questionItem.time }}的提问
      </div>
    </div>
    <div class="right">
      <div class="add-score">+10分</div>
      <div class="answer small-hand">回答问题</div>
    </div>

  </div>
</template>

<script>
export default {
  name: 'questionWaitingCard',
  components: {

  },
  data(){
    return {

    }
  },
  methods:{
    toQuestionDetail(){
      this.$router.push('/questionDetail')
    }
  },
  props:['questionItem']
}
</script>

<style scoped lang="less">
.question-waiting-card{
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid #e0dede;
  padding: 10px 0;
  .left{
    width: 80%;
    .question{
      display: flex;
      align-items: center;
      .label{
        background-color: #afc5ee;
        border-radius: 5px;
        padding: 5px;
        height: max-content;
        margin-right: 10px;
      }
      .text{
        font-weight: 600;
        font-size: 20px;
        margin: 10px 0;
      }
    }
    .info{
    }
  }
  .right{
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    .add-score{
      background-color: #e0dede;
      border-radius: 5px;
      padding: 2px;
      height: max-content;
      margin-right: 10px;
    }
    .answer{
      background-color: #056de8;
      height: max-content;
      color: white;
      padding: 6px;
      border-radius: 10px;
    }
  }
}
</style>
